Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to mainnet #1305

Merged
merged 43 commits into from
Jul 13, 2023
Merged

Deploy to mainnet #1305

merged 43 commits into from
Jul 13, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 9, 2023

No description provided.

iamyates and others added 14 commits May 25, 2023 15:35
unify extra info (working)
* add download csv (working)

* fixed bug for download

* refactor address_transactions_controller.rb#download_csv, improved udts_controller.rb

* udt save as csv done

* improved code

* working on nft-transfers

* added unit test for: api/v2/nft/transfers_controller#show

* added unit test for: api/v2/nft/transfers_controller#index

* finished download csv for /api/v2/nft/transfers_controller

* add unit test for blocks#download_csv
* testing

(cherry picked from commit e691165)

* test pulling new transaction from websocket

(cherry picked from commit 511d47f)

* refactoring

* process pending transaction

* add commit block actions

* add proc

* using ckb_transactions not pool transaction entry

* fix

* select pending and rejected from ckb_transactions table

* create placeholder cell input

* fix

* add previous_index

* fix

* fix

* fix

* skip nil for caching

* add unit test for import transaction

* fix unit test

* remove PoolTransactionEntry

* Apply suggestions from code review

Co-authored-by: Miles Zhang <[email protected]>

* update database structure

---------

Co-authored-by: Miles Zhang <[email protected]>
* added sort to address transactions

* added sort to block list

* added index to blocks.reward

* added sort to transactions, added index

* added sort to pending transactions

* added sort to udts

* added sort to nfts ( token_collections ) and filter

* added filter to udt_transactions

* added filter to dao transactions

* fixed filter bug for blocks, udts, pending tx

* finished: sorting in blocks api

* finished: sorting in tx api

* finished: sorting in pending_tx api

* finished: sorting in udts api

* finished: sorting in /api/v1/address_transactions/[:id] api

* fixed failed unit test of: app/controllers/api/v2/nft/collections_controller.rb

* fixed failt unit test for: controllers/api/v1/block_transactions_controller

* remove useless index

* added more columns to sort

* fixed failed unit test, for api/v1/ckb_transactions

* used order(order_by => asc_or_desc)

* improved code, used split(., 2)

* fixed failed unit tests
* sort nft collections by hot

* improved code

* used lib/scheduler instead of config/schedule.yml
* feat: create address block snapshot model

Signed-off-by: Miles Zhang <[email protected]>

* feat: rollback address info use address_block_snapshots data

Signed-off-by: Miles Zhang <[email protected]>

* test: fix test

Signed-off-by: Miles Zhang <[email protected]>

* feat: save address final_state as jsonb type

Signed-off-by: Miles Zhang <[email protected]>

---------

Signed-off-by: Miles Zhang <[email protected]>
* feat: reduce ckb transactions export as csv n+1 querys

* test: address transactions download csv

* chore: adjust factory block generation with milliseconds timestamp

* chore: remove comment

* feat: add export address transactions job

* chore: remove Rails.cache.realize
* fix: update cota sync data

* chore: adjust tests
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Co-authored-by: NanZhang <[email protected]>
fix memory leak in udt transaction count (#1302)
fix: update cota sync data (#1303)
fix: rectify the cout error in the progress bar (#1304)
@Keith-CY
Copy link
Collaborator

Keith-CY commented Jun 9, 2023

Conflicted

ShiningRay and others added 10 commits June 9, 2023 18:42
add tx_committed filter for transaction list
* move data from cell_outputs to cell_datum

* fix cell data import in node data processing

* fix

* fix test
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Co-authored-by: NanZhang <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
rabbitz and others added 16 commits June 16, 2023 09:25
* Deploy to testnet (#1291)

Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Co-authored-by: NanZhang <[email protected]>
fix memory leak in udt transaction count (#1302)
fix: update cota sync data (#1303)
fix: rectify the cout error in the progress bar (#1304)

* add tx_committed filter for transaction list

* Optimize block query performance (#1307)

* fix: cell output cota info

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Fix transaction is always shown as pending
…sort

fix: block transactions sort order by id asc
* refactor: backend epoch statistics

* chore: fix typo

* chore: adjust test
* Deploy to testnet (#1291)

Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Co-authored-by: NanZhang <[email protected]>
fix memory leak in udt transaction count (#1302)
fix: update cota sync data (#1303)
fix: rectify the cout error in the progress bar (#1304)

* add tx_committed filter for transaction list

* Optimize block query performance (#1307)

* fix: cell output cota info

* remove duplicated ckb transactions

* fix: block transactions sort order by id asc

* fix

* fill missing cell output data

* fix dao events tests

* batch insert  cell data

* optimize cell input index filling

* fix test

* remove duplicate code

* fix test

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: NanZhang <[email protected]>
* Deploy to testnet (#1291)

Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
Co-authored-by: NanZhang <[email protected]>
fix memory leak in udt transaction count (#1302)
fix: update cota sync data (#1303)
fix: rectify the cout error in the progress bar (#1304)

* add tx_committed filter for transaction list

* Optimize block query performance (#1307)

* fix: cell output cota info

* remove duplicated ckb transactions

* fix: block transactions sort order by id asc

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miles Zhang <[email protected]>
Co-authored-by: Chen Yu <[email protected]>
Co-authored-by: iamyates <[email protected]>
Co-authored-by: ShiningRay <[email protected]>
Co-authored-by: 代码之力 <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2023

Codecov Report

Patch coverage: 62.71% and project coverage change: +6.63 🎉

Comparison is base (d4bc363) 59.49% compared to head (9b43d03) 66.12%.

❗ Current head 9b43d03 differs from pull request most recent head 85ced84. Consider uploading reports for the commit 85ced84 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1305      +/-   ##
==========================================
+ Coverage   59.49%   66.12%   +6.63%     
==========================================
  Files         257      272      +15     
  Lines        7572     7336     -236     
==========================================
+ Hits         4505     4851     +346     
+ Misses       3067     2485     -582     
Impacted Files Coverage Δ
.../controllers/api/v2/ckb_transactions_controller.rb 0.00% <0.00%> (ø)
app/models/account_book.rb 100.00% <ø> (ø)
app/models/address_dao_transaction.rb 100.00% <ø> (ø)
app/models/address_udt_transaction.rb 100.00% <ø> (ø)
app/models/application_record.rb 100.00% <ø> (ø)
app/models/average_block_time_by_hour.rb 0.00% <0.00%> (ø)
app/models/forked_block.rb 100.00% <ø> (ø)
app/models/nrc_factory_cell.rb 58.06% <ø> (+11.91%) ⬆️
app/models/rolling_avg_block_time.rb 0.00% <0.00%> (ø)
app/models/token_collection.rb 39.47% <ø> (+3.94%) ⬆️
... and 92 more

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

ShiningRay and others added 3 commits July 10, 2023 05:08
* refactor: daily statistic generator use attr logic concern

Signed-off-by: Miles Zhang <[email protected]>

* test: fix test

Signed-off-by: Miles Zhang <[email protected]>

* feat: add uniq index to daily statistic

Signed-off-by: Miles Zhang <[email protected]>

* fix: filter commited tx when we generate daily statistic

Signed-off-by: Miles Zhang <[email protected]>

* feat: filter transactions_count with committed status

Signed-off-by: Miles Zhang <[email protected]>

---------

Signed-off-by: Miles Zhang <[email protected]>
@rabbitz
Copy link
Collaborator

rabbitz commented Jul 13, 2023

RAILS_ENV=production bundle exec rake migration:update_cell_type
  • staging
  • testnet
  • mainnet
RAILS_ENV=production bundle exec rake migration:update_token_transfer_action
  • staging
  • testnet
  • mainnet

@Keith-CY Keith-CY merged commit dbda9bd into master Jul 13, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants